com.inscoper.api.Camera¶
Camera class defines the interface for camera devices. More...
Inherits from com.inscoper.api.AbstractSystem
Public Functions¶
| Name | |
|---|---|
| synchronized void | delete() |
| long | getImageHeight() Get the image height. |
| long | getImageWidth() Get the image width. |
| long | getImageBitDepth() Get the image bit depth. |
| long | getBytesPerPixel() Get the number of bytes per pixel. |
| int | getImageBufferSize() Get the image buffer size. |
| long | getImageNumberPerTrigg() Get the number of acquired images per trigger. |
| long | getMaxNumberOfChannel() Get the maximum number of channels. |
| double | getExposure() Get the exposure time. |
| void | setExposure(double d) Set the exposure time. |
| String | getBinning() Get the binning mode. |
| void | setBinning(String binning) Set the binning mode. |
| boolean | isHardwareCropAvailable() Check if hardware ROI cropping is available. |
| void | setHardwareCrop(RoiCropVector crops) Set the hardware ROI crops. |
| RoiCropVector | getHardwareCrop() Get the hardware ROI crops. |
| boolean | isSequenceRunning() Check if a sequence is running. |
| void | prepareSequenceAcquisition() Prepare for sequence acquisition. |
| void | startSequenceAcquisition(long nbImage) Start a sequence acquisition. |
| void | startContinuousSequenceAcquisition() Start a continuous sequence acquisition. |
| void | checkSequenceStarted() Wait until the sequence starts. |
| void | softwareTriggerImage() Trigger an image acquisition bypassing the device controller (software trigger). |
| boolean | isSoftwareTriggerAvailable() Check if software trigger is available. |
| Image | snapImage(long chanIdx) Captures a single frame from the specified channel. |
| Image | popNextImage(long chanIdx) Pop the next acquired image. |
| Image | popNextImageBlocking(long chanIdx) Wait and pop the next acquired image. |
| Image | getLastImage(long chanIdx, long indexBeforeLastImg) Get the last acquired image. |
| Image | getLastImage(long chanIdx) Get the last acquired image. |
| int | getRemainingImageCount(long chanIdx) Get the number of images remaining in the buffer. |
| void | stopSequenceAcquisition() Stop the sequence acquisition. |
| void | clearBuffers() Clear internal buffers. |
Protected Functions¶
| Name | |
|---|---|
| Camera(long cPtr, boolean cMemoryOwn) | |
| void | swigSetCMemOwn(boolean own) |
| void | finalize() |
| long | getCPtr(Camera obj) |
Additional inherited members¶
Public Functions inherited from com.inscoper.api.AbstractSystem
| Name | |
|---|---|
| EDeviceType | getDeviceType() Get the type of the device. |
| String | getLastError() Get the last error message. |
| StringVector | getProperties() Get the list of available properties. |
| SubDeviceIdVector | getModifiedProperties() Get the list of modified properties. |
| String | getProperty(String name) Get the value of a property. |
| void | setProperty(String name, String value) Set the value of a property. |
| void | checkProperty(String name) Check if a property value is valid. |
| boolean | isReadOnly(String propName) Check if a property is read-only. |
| EParamType | getType(String propName) Get the data type of a property. |
| String | getMin(String propName) Get the minimum value of a property. |
| String | getMax(String propName) Get the maximum value of a property. |
| String | getStep(String propName) Get the step size of a property. |
| StringVector | getValueList(String propName) Get the list of allowed values for a property. |
| boolean | isAccessibleInSequence(String propName) Check if a property is accessible during sequence execution. |
| int | getRealType() |
| AbstractSystem | createProxy(long cPtr, boolean cMemoryOwn) |
Protected Functions inherited from com.inscoper.api.AbstractSystem
| Name | |
|---|---|
| AbstractSystem(long cPtr, boolean cMemoryOwn) |
Detailed Description¶
Camera class defines the interface for camera devices.
This class extends AbstractSystem to provide image acquisition capabilities, controlling parameters such as exposure, binning, and ROIs, and managing acquisition sequences.
Public Functions Documentation¶
function delete¶
Reimplements: com.inscoper.api.AbstractSystem.delete
function getImageHeight¶
Get the image height.
Return: The image height
Retrieves the height of the acquired images in pixels.
function getImageWidth¶
Get the image width.
Return: The image width
Retrieves the width of the acquired images in pixels.
function getImageBitDepth¶
Get the image bit depth.
Return: The image bit depth
Retrieves the bit depth of the acquired images (e.g., 8, 12, 16 bits).
function getBytesPerPixel¶
Get the number of bytes per pixel.
Return: The bytes per pixel
Retrieves the number of bytes used to store a single pixel in the acquired images.
function getImageBufferSize¶
Get the image buffer size.
Return: The image buffer size
Retrieves the total size of the image buffer in bytes.
function getImageNumberPerTrigg¶
Get the number of acquired images per trigger.
Return: The number of acquired images per trigger
Retrieves the number of frames acquired for each trigger event.
function getMaxNumberOfChannel¶
Get the maximum number of channels.
Return: The maximum number of channels
Retrieves the maximum number of channels supported by the camera.
function getExposure¶
Get the exposure time.
Return: The exposure time
Retrieves the current exposure time setting in micro seconds.
function setExposure¶
Set the exposure time.
Parameters:
- d : The exposure time to set
Sets the exposure time for image acquisition, in micro seconds.
function getBinning¶
Get the binning mode.
Return: The binning mode
Retrieves the current binning configuration (e.g., "1x1", "2x2").
function setBinning¶
Set the binning mode.
Parameters:
- binning : The binning mode to set
Sets the binning configuration for image acquisition.
function isHardwareCropAvailable¶
Check if hardware ROI cropping is available.
Return: True if hardware ROI cropping is available, false otherwise
Determines if the camera supports Region Of Interest (ROI) cropping in hardware.
function setHardwareCrop¶
Set the hardware ROI crops.
Parameters:
- crops : A list of hardware ROI crops
Configures the hardware regions of interest for acquisition.
function getHardwareCrop¶
Get the hardware ROI crops.
Return: A list of hardware ROI crops
Retrieves the currently configured hardware regions of interest.
function isSequenceRunning¶
Check if a sequence is running.
Return: True if a sequence is running, false otherwise
Determines if an image acquisition sequence is currently in progress.
function prepareSequenceAcquisition¶
Prepare for sequence acquisition.
Performs necessary setup steps before starting an acquisition sequence.
function startSequenceAcquisition¶
Start a sequence acquisition.
Parameters:
- nbImage : The number of images to acquire
Begins capturing a specified number of images. -1, is an infinite number of images.
function startContinuousSequenceAcquisition¶
Start a continuous sequence acquisition.
Begins capturing images continuously until stopped.
function checkSequenceStarted¶
Wait until the sequence starts.
Wait until the acquisition sequence initiates.
function softwareTriggerImage¶
Trigger an image acquisition bypassing the device controller (software trigger).
Sends a direct software command to capture an image, without the device controller.
function isSoftwareTriggerAvailable¶
Check if software trigger is available.
Return: True if software trigger is available, false otherwise
Determines if the camera supports direct triggering via software commands.
function snapImage¶
Captures a single frame from the specified channel.
Parameters:
- chanIdx : The index of the acquisition channel (0 for single-channel devices)
Return: The image
Initiates an image acquisition and retrieves the data from the requested channel index.
function popNextImage¶
Pop the next acquired image.
Parameters:
- chanIdx : The index of the acquisition channel (0 for single-channel devices)
Return: The image
Acquired images are stored in an internal buffer. Retrieves the next available image from this buffer, for the requested channel index.
function popNextImageBlocking¶
Wait and pop the next acquired image.
Parameters:
- chanIdx : The index of the acquisition channel (0 for single-channel devices)
Return: The image
Acquired images are stored in an internal buffer. Retrieves the next available image from this buffer, waiting if necessary until one becomes available, for the requested channel index.
function getLastImage¶
Get the last acquired image.
Parameters:
- chanIdx : The index of the acquisition channel (0 for single-channel devices)
- indexBeforeLastImg : Offset from the last image (0 for the very last)
Return: The image
Acquired images are stored in an internal buffer. Retrieves an image from this buffer based on its chronological order for the requested channel index.
function getLastImage¶
Get the last acquired image.
Parameters:
- chanIdx : The index of the acquisition channel (0 for single-channel devices)
Return: The image
Acquired images are stored in an internal buffer. Retrieves an image from this buffer based on its chronological order for the requested channel index.
function getRemainingImageCount¶
Get the number of images remaining in the buffer.
Parameters:
- chanIdx : The index of the acquisition channel (0 for single-channel devices)
Return: The number of remaining images in the buffer
Retrieves the number of images currently waiting in the buffer.
function stopSequenceAcquisition¶
Stop the sequence acquisition.
Stops the current image acquisition sequence.
function clearBuffers¶
Clear internal buffers.
Clears all images stored in the internal buffers.
Protected Functions Documentation¶
function Camera¶
function swigSetCMemOwn¶
Reimplements: com.inscoper.api.AbstractSystem.swigSetCMemOwn
function finalize¶
Reimplements: com.inscoper.api.AbstractSystem.finalize
function getCPtr¶
Updated on 2026-04-02 at 10:55:37 +0200